import LivingRoomView from "./LivingRoomView";
import ModuleManager, { ModuleID } from "../../../cfw/module/ModuleManager";
import { ResType } from "../../../cfw/res/ResInterface";
import ResItem from "../../../cfw/res/ResItem";


const {ccclass, property} = cc._decorator;

@ccclass
export default class HouseRoomView extends LivingRoomView {

 

    start () {

    }



    updateSprite(sprite:cc.Sprite ,path:string){
        ModuleManager.getLoader(ModuleID.OUT_DOOR).loadRes(path, ResType.SpriteFrame, (err, res: ResItem) => {
            if (err || !cc.isValid(this.node)) {
                return;
            }
            sprite.spriteFrame = res.getRes()
            // cc.log(' this.clothes[index] scale ', this.clothes[index].node.scale)
        })
    }
    // update (dt) {}
}
